<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>

		<div class="bar bar-nav">
			<h1 class="title">订单详情
                            <!--<?php echo ($activity['activity_name']); ?>-->
                        </h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>
		<div class="content">
			<div class="row activity_banner">
				<div class="col-100">
					<img src="<?php echo ($activity['activity_img']); ?>">
				</div>
				<div class="col-100 activity_top_title">
					<div class="content-padded">
						<h3><?php echo ($activity['activity_name']); ?></h3>
						<p>
							<span><i class="iconfont icon-huiyuan1"></i>[ <?php echo ($activity['sponsor']); ?> ]</span>
							<span class="pull-right"><i class="iconfont icon-browse"></i><?php echo ($activity['browse_number']); ?></span>
							<span class="pull-right"><i class="iconfont icon-fenxiang"></i><?php echo ($activity['share_number']); ?></span>
						</p>
					</div>
				</div>
			</div>

			<div class="row activity_list">
				<div class="col-100">
					<div class="list-block">
						<ul>
							<li class="item-content">
								<div class="item-media"><i class="iconfont icon-history"></i></div>
								<div class="item-inner">
									<div class="item-title"><?php echo (date("Y-m-d H:i:s",$activity['start_time'])); ?> 至 <?php echo (date("Y-m-d H:i:s",$activity['end_time'])); ?></div>
								</div>
							</li>
							<li class="item-content">
								<div class="item-media"><i class="iconfont icon-map"></i></div>
								<div class="item-inner">
									<div class="item-title"><?php echo ($activity['detail_address']); ?></div>
								</div>
							</li>
							<li class="item-content">
								<div class="item-media"><i class="iconfont icon-account"></i></div>
								<div class="item-inner">
									<div class="item-title">已报名<?php echo ($activity['signup_number']); ?>人 / 不限制名额</div>
								</div>
							</li>
							<li class="item-content">
								<div class="item-media"><i class="iconfont icon-demo22"></i></div>
								<div class="item-inner">
									<div class="item-title">
										<font class="button-danger"><?php echo ($activity['price']); ?>/人</font>
									</div>
								</div>
							</li>
							<li class="item-content">
								<div class="item-media"><i class="iconfont icon-phone"></i></div>
								<div class="item-inner">
									<div class="item-title"><?php echo ($activity['contact_mobile']); ?></div>
								</div>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="row activity_txt"><!-- style="margin-bottom: 70px;" -->
				<div class="col-100">
					<div class="content-padded" style="max-height:60px;">
						<?php echo (htmlspecialchars_decode($activity['describe'])); ?>
					</div>
					<div class="activity_btn text-center">
						<span>展开更多详情<i class="iconfont icon-moreunfold"></i></span>
					</div>
				</div>
			</div>
			
			<div class="row sign">
				<div class="col-100">
					<div class="content-padded">
						<div class="sign_title content-block-title">我的报名信息</div>
					</div>
				</div>
			</div>
			<div class="list-block" style="margin-top:0px;margin-bottom: 70px;font-size: .5rem;">
			<ul>
						      <!-- Text inputs -->
						      <li>
						        <div class="item-content">
						          <div class="item-media"><i class="icon icon-form-name"></i></div>
						          <div class="item-inner">
						            <div class="item-title label">姓名</div>
						            <div class="item-input">
						              <input type="text" style="font-size: .5rem;" name="name" readonly="readonly" value="<?php echo ($activity['name']); ?>" />
						            </div>
						          </div>
						        </div>
						      </li>
						      <li>
						        <div class="item-content">
						          <div class="item-media"><i class="icon icon-form-name"></i></div>
						          <div class="item-inner">
						            <div class="item-title label">手机</div>
						            <div class="item-input">
						              <input type="text" style="font-size: .5rem;" name="mobile" readonly="readonly" value="<?php echo ($activity['mobile']); ?>" />
						            </div>
						          </div>
						        </div>
						      </li>
						      <li>
						        <div class="item-content">
						          <div class="item-media"><i class="icon icon-form-name"></i></div>
						          <div class="item-inner">
						            <div class="item-title label">邮箱</div>
						            <div class="item-input">
						              <input type="text" style="font-size: .5rem;" name="email" readonly="readonly" value="<?php echo ($activity['email']); ?>" />
						            </div>
						          </div>
						        </div>
						      </li>
						    </ul>
						    </div>
			
</div>


<nav class="bar activity_nav bar-tab">
<?php if($activity['order_status'] == 4): ?><button type="submit" class="tab-item on" style="width: 100%;padding: 0;border: 0;float: left;">
		<span class="tab-label">已取消</span>
	</button>
<?php elseif($activity['order_status'] == 3): ?>
	<button type="submit" class="tab-item on" style="width: 100%;padding: 0;border: 0;float: left;">
		<span class="tab-label">已完成</span>
	</button>
<?php elseif($activity['order_status'] == 2): ?>
	<button type="submit" class="tab-item on" style="width: 100%;padding: 0;border: 0;float: left;">
		<span class="tab-label">待参与</span>
	</button>
<?php elseif($activity['order_status'] == 1): ?>
	<form action="<?php echo U('Wxpay/js_api_call');?>" method="post">
	<input type="hidden" name="order_sn" value="<?php echo ($activity['order_sn']); ?>" />
	<button type="submit" class="tab-item on" style="width: 100%;padding: 0;border: 0;float: left;">
		<span class="tab-label">去付款</span>
	</button>
	</form><?php endif; ?>
</nav>


		<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
		<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
		<script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script>
		<script type="text/javascript" src="/Public/Home/activity/js/huodon.js" ></script>
		<script>
			
			var swiper = new Swiper('.swiper-container', {
				pagination: '.swiper-pagination',
				paginationClickable: true,
				loop:true,    
				grabCursor: true,
				autoplay: 3000
			});
			
			 /* $(document).on('click','.open-preloader', function () {
				 Zepto.showPreloader('加载中...')
				    setTimeout(function () {
				    	 Zepto.hidePreloader();
				    }, 2000); 
			 }); */
			 $(document).on('click','.open-indicator', function () {
				 Zepto.showIndicator();
			     setTimeout(function () {
			    	Zepto.hideIndicator();
			     }, 2000);
			  });
		</script>
		

	</body>

</html>